menu: Remove stray references to 'button_press'
authorMatthias Clasen <mclasen@redhat.com>
Tue, 16 Jan 2018 18:41:29 +0000 (13:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 16 Jan 2018 19:14:10 +0000 (14:14 -0500)
No code change, but this string was still used in
docs and comments.

gtk/gtkmenu.c

index 799a5eb32e3a756920834b14dc08256541982c90..ffcaafddd23baaaf5999b20256d804268fb809dc 100644 (file)
@@ -47,7 +47,7 @@
  *
  * |[<!-- language="C" -->
  *   // connect our handler which will popup the menu
- *   g_signal_connect_swapped (window, "button_press_event",
+ *   g_signal_connect_swapped (window, "event",
  *     G_CALLBACK (my_popup_handler), menu);
  * ]|
  *
@@ -3076,14 +3076,14 @@ gtk_menu_released_cb (GtkGestureMultiPress *gesture,
     }
 
   /*  Don't pass down to menu shell if a non-menuitem part of the menu
-   *  was clicked (see comment in button_press()).
+   *  was clicked (see comment in gtk_menu_pressed_cb()).
    */
   if (GTK_IS_MENU_SHELL (gtk_get_event_widget ((GdkEvent *) event)) &&
       pointer_in_menu_window (GTK_WIDGET (menu), button_event->x_root, button_event->y_root))
     {
       /*  Ugly: make sure menu_shell->button gets reset to 0 when we
        *  bail out early here so it is in a consistent state for the
-       *  next button_press/button_release in GtkMenuShell.
+       *  next button press or release in GtkMenuShell.
        *  See bug #449371.
        */
       if (GTK_MENU_SHELL (menu)->priv->active)